#include "if_possible.h"
#include "KeySchedule.h"
#include "e_oneround.h"
#include "basicoperation.h"
#include "common.h"

void last_5bit_zero( word *plaintext , word *ciphertext , word &u , word *key )
{
/*	word u ;*/
	ciphertext[1] = ciphertext[1] + key[0] ;
	ciphertext[3] = ciphertext[3] + key[1] ;
	for ( int i = 1 ; i <= r-1 ; ++i )
	{
		e_oneround( ciphertext , key[2*i] , key[2*i+1] ) ;
	}
	u = rotate_left( ciphertext[3]*(2*ciphertext[3] + 1) , last_5_bits(lgw) ) ;
// 	ciphertext[0] = ciphertext[0] + key[2*r+2] ;
// 	ciphertext[2] = ciphertext[2] + key[2*r+3] ;
}